package com.lc.stock.module.stockdailyline.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

/**
 * @author lichen
 * @description 股票日线交易数据
 * @menu
 * @date 2023/2/6 10:43
 */
@Document(collection = "stock_daily_line")
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class StockDailyLine implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    private String _id;
    @Indexed
    private String stockCode; //股票代码
    private List<StockDailyLineDetails> stockDailyLines;//交易数据集合
}
